package com.itheima.service;

import com.itheima.admin.dishpojo.Dish;
import com.itheima.client.dishpojo.vo.DishSetmealVo;
import com.itheima.client.dishpojo.vo.SetmealVo;
import com.itheima.mapper.client.ClientSetmealMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wuzhiyong
 */
@Service
public class ClientSetmealService {
    @Autowired
    private ClientSetmealMapper clientSetmealMapper;

    /**
     * 菜品详情
     *
     * @param setmealId setmealId
     * @return List<DishSetmealVo>
     */
    public List<DishSetmealVo> getBySetmealId(String setmealId) {
        return clientSetmealMapper.selectBySetmealId(setmealId);
    }

    /**
     * 套餐列表
     * @param categoryId categoryId
     * @param status status
     * @return List<SetmealVo>
     */
    public List<SetmealVo> getSetmeal(String categoryId, Integer status) {
        return clientSetmealMapper.selectSetmeal(categoryId, status);
    }
}
